﻿using Deferred.Library.Scene;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Deferred.Editor.Scene
{
    public class PointLightWrapper
    {
        public PointLight PointLight { get; private set; }

        public float PositionX { get { return PointLight.Position.X; } set { PointLight.Position = new Vector3(value, PointLight.Position.Y, PointLight.Position.Z); } }
        public float PositionY { get { return PointLight.Position.Y; } set { PointLight.Position = new Vector3(PointLight.Position.X, value, PointLight.Position.Z); } }
        public float PositionZ { get { return PointLight.Position.Z; } set { PointLight.Position = new Vector3(PointLight.Position.X, PointLight.Position.Y, value); } }

        public byte ColorR { get { return PointLight.Color.R; } set { PointLight.Color = new Color(value, PointLight.Color.G, PointLight.Color.B); } }
        public byte ColorG { get { return PointLight.Color.G; } set { PointLight.Color = new Color(PointLight.Color.R, value, PointLight.Color.B); } }
        public byte ColorB { get { return PointLight.Color.B; } set { PointLight.Color = new Color(PointLight.Color.R, PointLight.Color.G, value); } }

        public PointLightWrapper(PointLight pointLight)
        {
            this.PointLight = pointLight;
        }
    }
}
